﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="top.aspx.cs" Inherits="inc_top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
<!--
a:link {
	color: #FFFFFF;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #FFFFFF;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
	color: #FFFFFF;
}
-->
</style>

    <script type="text/javascript">
        function hidMenu() {
               try {
                    if(window.parent.MyFrame.cols == "200,*") {
                        window.parent.MyFrame.cols = "0,*";
                        document.getElementById("myarrow").src = "../images/menu_image/expand.gif"; 
//                        var mydivs = window.parent.s1.document.getElementsByTagName("div");
//                        for(var i = 0; i < mydivs.length; i++) {
//                            mydivs[i].style.width = '490';
//                        }   
                    } else {
                        window.parent.MyFrame.cols = "200,*"
                        document.getElementById("myarrow").src = "../images/menu_image/colspand.gif";  
//                        var mydivs = window.parent.s1.document.getElementsByTagName("div");
//                        for(var i = 0; i < mydivs.length; i++) {
//                            mydivs[i].style.width = '390';
//                        }   
                    }  
                } catch (ex) {
                     alert(ex.message); 
                 }   
         }
         function hidTopMenu() {
            try {
                if(window.parent.Laf.rows == "80,*") {
                        document.getElementById("mytr").style.display = "none";
                        window.parent.Laf.rows = "20,*";
                        document.getElementById("myimg").src = "../images/menu_image/dian2.jpg"; 
                    } else {
                        window.parent.Laf.rows = "80,*"
                        document.getElementById("mytr").style.display = "inline"; 
                        document.getElementById("myimg").src = "../images/menu_image/dian1.jpg";  
                    }  
            } catch (ex) {
                alert(ex.message);
            }  
         }
    </script>

</head>
<body leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <table style="width: 100％" align="center" cellpadding="0" cellspacing="0">
                <tr id="mytr">
                    <td background="" height="60px">
                            OA自动办公化系统 
                       </td>
                </tr>
                <tr>
                    <td>
                        <table height="20px" cellpadding="0" cellspacing="0" background="../images/back.jpg" style="width: 100%">
                            <tr>
                                <td style="width: 125px">
                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/face.gif" ImageAlign="AbsMiddle" />
                                   <asp:Label ID="LblUserName" runat="server" Font-Bold="True" ForeColor="White" Font-Size="Smaller"></asp:Label></td>
                                <td style="width: 180px">

                                    <script type="text/javascript">
                                         setInterval("aa.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
                                    </script>

                                    <font color="white">
                                        <label id="aa" style="font-size: 12px">
                                        </label>
                                    </font>
                                </td>
                                <td style="width: 100px" valign="bottom" align="center">
                                    <img id="myarrow" style="cursor: hand" src="../images/menu_image/colspand.gif" onclick="hidMenu()"
                                        align="absmiddle" title="隐藏或显示菜单" />&nbsp;&nbsp;
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/menu/email.gif" /><a href="#" onclick="javascript:window.parent.s1.location = '../User/UserEmail/EmailIndex.aspx'"><font
                                        color="white" style="font-size: 12px">内部邮件</font></a>
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/menu/notify.gif" /><a href="#" onclick="javascript:window.parent.s1.location = '../AfficheInform/Index.aspx'"><font
                                        color="white" style="font-size: 12px">公告通知</font></a>
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/menu/calendar.gif" /><a href="#" onclick="javascript:window.parent.s1.location='../CalendarArrange/ArrangeIndex.aspx'"><font
                                        color="white" style="font-size: 12px">日程安排</font></a>
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/menu/workflow.gif" /><a href="#" onclick="javascript:window.parent.s1.location = '../Flow_Info/WillTransactWork.aspx'"><font
                                        color="white" style="font-size: 12px">待办工作</font></a>
                                </td>
                                <td>
                                    <img src="../images/menu_image/desk.gif" align="absmiddle" /><a href="#" onclick="javascript:window.parent.s1.location = '../IndexMain.aspx'">
                                        <font color="white" style="font-size: 12px">桌面</font> </a>
                                </td>
                                <td>
                                    &nbsp;&nbsp;<img align="absmiddle" src="../images/menu/person_info.gif" />
                                    <font color="white" style="font-size: 12px"><a href="#" onclick="avascript:window.parent.s1.location ='../admin/UserSetting.aspx'">个人设置</a></font>
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/menu_image/logout.gif" /><a href="../Logout.aspx"
                                        onclick="return confirm('您确定要注销吗？')"> <font color="white" style="font-size: 12px">注销</font></a>
                                    <img id="myimg" src="../images/menu_image/dian1.jpg" style="cursor: hand" title="隐藏或显示页头"
                                        onclick="hidTopMenu()" align="absmiddle" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <asp:Timer ID="CalendarTimer" runat="server" OnTick="CalendarTimer_Tick">
                    </asp:Timer>
                </ContentTemplate>
            </asp:UpdatePanel> 
        </div>
    </form>
</body>
</html>
